package com.xca.znb.model.impl;

import android.content.Context;

import com.xca.znb.database.UserDAO;
import com.xca.znb.entity.User;
import com.xca.znb.model.imodel.IMineModel;

public class MineModelImpl implements IMineModel {
    private UserDAO userDAO;

    public MineModelImpl(Context context) {
        userDAO = new UserDAO(context);
    }

    @Override
   public User getUser(String phone){
       return userDAO.getUser(phone);
    }

    @Override
    public double getNum(String phone) {
        return userDAO.getSum(phone);
    }
}
